home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / m32r / Makefile < prev   
Encoding:
Makefile  |  2008-12-24  |  1.4 KB  |  63 lines

  1. #
  2. # m32r/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies.
  6. #
  7.  
  8. KBUILD_DEFCONFIG := m32700ut.smp_defconfig
  9.  
  10. LDFLAGS        :=
  11. OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
  12. LDFLAGS_vmlinux    :=
  13.  
  14. KBUILD_CFLAGS += -pipe -fno-schedule-insns
  15. CFLAGS_KERNEL += -mmodel=medium
  16. CFLAGS_MODULE += -mmodel=large
  17.  
  18. ifdef CONFIG_CHIP_VDEC2
  19. cflags-$(CONFIG_ISA_M32R2)    += -DNO_FPU -Wa,-bitinst
  20. aflags-$(CONFIG_ISA_M32R2)    += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
  21. else
  22. cflags-$(CONFIG_ISA_M32R2)    += -DNO_FPU -m32r2
  23. aflags-$(CONFIG_ISA_M32R2)    += -DNO_FPU -m32r2 -O2
  24. endif
  25.  
  26. cflags-$(CONFIG_ISA_M32R)    += -DNO_FPU
  27. aflags-$(CONFIG_ISA_M32R)    += -DNO_FPU -O2 -Wa,-no-bitinst
  28.  
  29. KBUILD_CFLAGS += $(cflags-y)
  30. KBUILD_AFLAGS += $(aflags-y)
  31.  
  32. CHECKFLAGS    += -D__m32r__ -D__BIG_ENDIAN__=1
  33.  
  34. head-y    := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
  35.  
  36. LIBGCC    := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
  37.  
  38. libs-y    += arch/m32r/lib/ $(LIBGCC)
  39. core-y    += arch/m32r/kernel/    \
  40.        arch/m32r/mm/    \
  41.        arch/m32r/boot/    \
  42.        arch/m32r/platforms/
  43.  
  44. drivers-$(CONFIG_OPROFILE)    += arch/m32r/oprofile/
  45.  
  46. boot := arch/m32r/boot
  47.  
  48. PHONY += zImage
  49.  
  50. all: zImage
  51.  
  52. zImage: vmlinux
  53.     $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
  54.  
  55. compressed: zImage
  56.  
  57. archclean:
  58.     $(Q)$(MAKE) $(clean)=$(boot)
  59.  
  60. define archhelp
  61.     echo  '* zImage          - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
  62. endef
  63.